<template>
  <el-date-picker v-bind="$attrs" v-model="modelValue" :type="type"> </el-date-picker>
</template>

<script>
export default {
  props:{
    value: {
      required: true,
    },
    type: {
      type: String,
      default: 'datetime'
    },
  },
  computed: {
    modelValue: {
      get () {
        return this.value
      },
      set (val) {
        this.$emit('input', val)
      },
    },
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {},
  components: {},
};
</script>

<style lang="less" scoped></style>
